<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class HomeItem extends Model
{
    protected $table = 'home_item';

    public $fillable = ['module_id', 'agent_id', 'goods_id', 'order_num'];

    public function goods()
    {
        return $this->hasOne('App\Model\Goods', 'id', 'goods_id');
    }
}
